package com.itxiuyixiu.homework.entity.dto;

import com.itxiuyixiu.homework.entity.enums.AcademyName;
import com.itxiuyixiu.homework.entity.enums.AcademyName;
import com.itxiuyixiu.homework.entity.model.Academy;

import javax.persistence.Column;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;

/**
 * @author 黄磊
 * @date 2020/3/5
 */
public class AcademyDto implements  Cloneable{
    /**
     * 学院ID
     */
    private Integer id;

    /**
     * 学院名称
     */
    private String academyName;

    public static Academy parseAcademy(AcademyDto dto){
        Academy academy = new Academy();
        academy.setAcademyName(dto.getAcademyName());
        return academy;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getAcademyName() {
        return academyName;
    }

    public void setAcademyName(String academyName) {
        this.academyName = academyName;
    }

    @Override
    public Object clone() throws CloneNotSupportedException {
        return super.clone();
    }
}
